<ion-header>
    <ion-navbar>
        <ion-title>
            添加产品
        </ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    <ion-list class="list_content">
        <ion-item style="position:relative;">
            <ion-input type="text" value="" placeholder="新增产品货号/条码" [(ngModel)]="aa" (keyup)="showModal($event)">
            </ion-input>
        </ion-item>
        <button ion-button outline class="qrBtn" color="light">
            <ion-icon name="ios-barcode-outline" ></ion-icon>
        </button>
        <ion-item>
            <ion-input type="text" value="" placeholder="产品货号,使用条码做货号时可不填" [(ngModel)]="a" (keyup)="showModal($event)"></ion-input>
        </ion-item>
        <ion-item>
            <ion-input type="text" value="" placeholder="价格" [(ngModel)]="c" (keyup)="showModal($event)"></ion-input>
        </ion-item>
        <ion-item>
            <ion-input type="text" value="" placeholder="规格" [(ngModel)]="d" (keyup)="showModal($event)"></ion-input>
        </ion-item>
        <ion-item>
            <ion-input type="text" value="" placeholder="库存" [(ngModel)]="e" (keyup)="showModal($event)"></ion-input>
        </ion-item>
    </ion-list>
    <ion-card no-margin style="width:94%;margin:1rem auto;" *ngIf="show">
        <ion-card-content class="car_cont">
            <ion-row>
                <ion-col col-6 text-center>
                    <ion-icon name="ios-camera-outline"></ion-icon>
                </ion-col>
                <ion-col col-6 text-center>
                    <ion-icon name="ios-images-outline"></ion-icon>
                </ion-col>
            </ion-row>
        </ion-card-content>
    </ion-card>
    <button padding ion-button block [disabled]="!show" style="margin:auto;width:95%;" (click)="addNew()">新增产品</button>
</ion-content>